package com.oauth.mapper;

import com.oauth.model.OpenResourceAuth;
import com.oauth.resmodel.AuthResource;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;
import java.util.Map;

/**
 * Created by yangjianbo on 2016/7/26.
 */
public interface OpenResourceAuthMapper extends Mapper<OpenResourceAuth> {

    /**
     * 模糊且查询
     * @param openResourceAuth
     * @return
     */
    List<OpenResourceAuth> selectAndLike(@Param("param") OpenResourceAuth openResourceAuth);

    /**
     *
     * @param map 终端id--clientId   资源分类--resourceClass
     * @return
     */
    List<AuthResource> selectClsClient(@Param("param") Map map);//clientId,resourceClass

}
